#include <stdio.h>
void main(void)
{
  FILE *inFile;
  char c;
  inFile = fopen("text.dat", "r");
  int cout = 0;
  while (fread(&c, 1, 1, inFile))
  {
    putc(c, stdout);
    cout++;
  }
  fseek(inFile, 0L, SEEK_END);
  int size = ftell(inFile);
  printf("\nsize:%d,count=%d\n", size, cout);
}